<?php if (!defined("_ECRIRE_INC_VERSION")) return;
/**
 * Aloha Cart
 *
 * @author     Aleksey Yaroshchuk (aleksey.yaroshchuk@gmail.com)
 * @license    GNU/GPL
 * @package    plugins
 * @subpackage alohacart
 * @copyright  (c) Aleksey Yaroshchuk 2011-2012
 * @link       http://www.spip-contrib.net/AlohaCart
 */

include_spip('functions/pdk_common');

function formulaires_alohacart_order_verifier_dist($id_order){
	$erreurs = array();
    
    $order_mdl = pdk_load_class('AlohacartOrderModel','classes');
    $data = $order_mdl->form_data_from_array($_REQUEST);
    $order_mdl->validate($data, $erreurs, true);
     
	return $erreurs;
}